# CMakeLists
# Author(s): xuming.Wong <xuming.Wong@gmail.com>

#-----------------------------------------------------------------------------
# 
MESSAGE(STATUS "Project PQGame...")

# Set src files
FILE(GLOB SRC *.cpp DBC/*.cpp M2/*.cpp Map/*.cpp)

SET(INC .
	./DBC
	./M2
	./Map
	${OGRE_INCLUDE_PATH}
	
	${LIBDIR}/mono/include
	${LIBDIR}/mono/include/glib-2.0
	${LIBDIR}/cximage/include
	
	${PROJECT_SOURCE_DIR}/Dependency/bullet/src
	${PROJECT_SOURCE_DIR}/Dependency/hydrax/src
	${PROJECT_SOURCE_DIR}/Dependency/stormlib

	${PROJECT_SOURCE_DIR}/Client/PQEngine
	${PROJECT_SOURCE_DIR}/Client/PQEngine/Core
	${PROJECT_SOURCE_DIR}/Client/PQEngine/GFX
	${PROJECT_SOURCE_DIR}/Client/PQEngine/GPK
	${PROJECT_SOURCE_DIR}/Client/PQEngine/Mono
	${PROJECT_SOURCE_DIR}/Client/PQEngine/Physics
	${PROJECT_SOURCE_DIR}/Client/PQEngine/Terrain
	${PROJECT_SOURCE_DIR}/Client/PQEngine/Sky
	
	${PROJECT_SOURCE_DIR}/Client/PQGameCore
	${PROJECT_SOURCE_DIR}/Client/PQGameCore/M2
	${PROJECT_SOURCE_DIR}/Client/PQGameCore/DBC
)

#Include ui headers produced by qt:
include_directories(${CMAKE_CURRENT_BINARY_DIR})

FILE(READ ${CMAKE_BINARY_DIR}/cmake_libs.txt OUT_LIBS)
SET(LIB
	${LIBDIR}/mono/lib/mono.lib
	${LIBDIR}/cximage/lib/cximagecrtd.lib #hard link to debug library for i don't kown cmake well.
	${LIBDIR}/poco/lib/PocoFoundationd.lib
	${LIBDIR}/ois/lib/OIS_d.lib
	
	${GDK3D_OGRE_LIBS}
	${OUT_LIBS}
)


BUILD_EXE_Win32(PQGame "${SRC}" "${INC}")
TARGET_LINK_LIBRARIES(PQGame ${LIB})
